package edu.hrbu.trade01.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author 徐登宇
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Menu {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String title;

    private String href = "";

    private String icon;

    private Long pid;

    @TableLogic
    private Integer isDeleted;

    @TableField(exist = false)
    private List<Menu> child;

}
